<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
<script>

// const img = new Image()
// img.src='/api/users?abc=123'

    (async () => {
        // axios.defaults.baseURL = 'http://localhost:4000'

        // axios.defaults.withCredentials = true
        // const res = await axios.get("/api/users",{headers:{'X-Token':'jilei'}})
        // console.log('data',res.data)
        // document.writeln(`Response : ${JSON.stringify(res.data)}`)

        await axios.post("/api/save", 'a=1&b=3', {
            headers: {
                'Content-Type': 'application/x-www-form-urlencoded',
            },
        })
        // await axios.post("/api/save", {
        //     a: 1,
        //     b: 2
        // })
    })()
</script>

<!-- <form action="/api/save" method="post">
    <input type="text" name="abc" value="123">
    <input type="submit" value="save">
</form> -->